package com.zian.domain.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.zian.enums.GoodsSellStatusEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
 @ApiModel( "商品信息VO对象")
public class GoodsQueryVO {

     @ApiModelProperty( "商品表主键id")
    private Long id;

     @ApiModelProperty( "商品名")
    private String goodsName;

     @ApiModelProperty( "商品简介")
    private String goodsIntro;

     @ApiModelProperty( "关联分类id")
    private Long goodsCategoryId;

     @ApiModelProperty( "分类名")
    private String goodsCategoryName;

     @ApiModelProperty( "商品主图")
    private String goodsCoverImg;

     @ApiModelProperty( "商品价格")
    private BigDecimal originalPrice;

     @ApiModelProperty( "商品实际售价")
    private BigDecimal sellingPrice;

     @ApiModelProperty( "商品库存数量")
    private Integer stockNum;

     @ApiModelProperty( "商品标签")
    @TableField(typeHandler = JacksonTypeHandler.class)
    private List<String> tag;

     @ApiModelProperty( "商品上架状态 1-下架 0-上架")
    private GoodsSellStatusEnum goodsSellStatus;

     @ApiModelProperty( "商品添加时间")
    private LocalDateTime createTime;


}
